<h2>Webcam Streams:</h2>


<?php
$cams = Yii::app()->params['cams'];
foreach ($cams as $i => $cam ) {
	$wi = WebcamImage::model()->findByAttributes(array('device_id'=>$i),array('order'=>'id DESC'));

	$this->renderPartial('cam_panel',array(
        	'cam'=>$cam,
		'image'=>'<img src="' . Yii::app()->baseUrl . '/images/' . $i . '/snapshot_' . $wi->id . '.jpeg"></img>',
      	));

}
?>

